package cn.wgd.zmx.common.exception;

public enum EmException implements CommonException{
    USER_ISLIVE(0003,"用户名已存在，请勿重复提交"),
    RUNTIME_EXCPTION(0001,"运行时异常"),
    MD5_EXCEPTION(0002,"MD5加密异常")
    ;

    private int code;

    private String message;

    EmException(int code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public int getErrCode() {
        return code;
    }

    @Override
    public String getErrMessage() {
        return message;
    }

    @Override
    public CommonException setErrMessage(String message) {
        this.message = message;
        return this;
    }
}
